<?php /* Smarty version Smarty-3.0.9, created on 2013-05-28 23:14:00
         compiled from "D:/wamp/www/glight/templates\index2.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2686851a53a38ac9693-59043748%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '01713e17430a9d51e9cb02a6a57ba769ba983fef' => 
    array (
      0 => 'D:/wamp/www/glight/templates\\index2.tpl',
      1 => 1369782831,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2686851a53a38ac9693-59043748',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>

        <div>CREAR REPORTE-Harley Davidson</div>
<table cellspacing="10" cellpadding="1" border="4"> 
 <tr> 
    <td align="center" >
        <table cellspacing="0" cellpadding="1" border="1">
            <tr>
                <td>
                    <form  method="post" action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
crear_reporte.php?option=preparar_reporte">
                    No Guia: 
                    <select name="codigo_guia">
                        <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('guias')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>

                        <option value="<?php echo $_smarty_tpl->getVariable('guias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('codigo');?>
"><?php echo $_smarty_tpl->getVariable('guias')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('codigo');?>
</option>
                        <?php endfor; endif; ?>
                    </select>

                    <input name="buscar" type="submit" value="Buscar">
                    </form>
                </td>
            </tr>
         <form  method="post" action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
crear_reporte.php?option=guardar">
             <input type="hidden" value="<?php echo $_smarty_tpl->getVariable('codigo_guia')->value;?>
" name="codigo_guia">
             <input type="hidden" value="<?php echo $_smarty_tpl->getVariable('fecha')->value;?>
" name="fecha">

             
            <td>Lista de parametros de control para esta fase:<br>
                <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['p']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('pcontrol')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['name'] = 'p';
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['p']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['p']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['p']['total']);
?>
                        
<?php echo $_smarty_tpl->getVariable('pcontrol')->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]->get('codigo');?>
----<?php echo $_smarty_tpl->getVariable('pcontrol')->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]->get('nombre');?>
----<?php echo $_smarty_tpl->getVariable('pcontrol')->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]->get('descripcion');?>
---<?php echo $_smarty_tpl->getVariable('pcontrol')->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]->get('estado');?>
---<?php echo $_smarty_tpl->getVariable('pcontrol')->value[$_smarty_tpl->getVariable('smarty')->value['section']['p']['index']]->get('codigo_modelo');?>
<br>




            <?php endfor; endif; ?>
            </td>
            <tr>
                <td>Informacion del reporte
                <br>
                
                Codigo reporte:<input type="number" min=1 name=codigo value="<?php echo $_smarty_tpl->getVariable('codreporte')->value;?>
" readonly> 
                <br>
                Fase anterior: <input type="number" min=1 name=estado_actual value="<?php echo $_smarty_tpl->getVariable('fanterior')->value;?>
" readonly>      Fase siguiente:    
                <select name="estado_siguiente">
                    <option value="1">Crear Chasis</option>
                    <option value="2">Aprobación chasis</option>
                    <option value="3">Pintura</option>
                    <option value="4">Ensamblaje motor</option>
                    <option value="5">Aprobación motor</option>
                    <option value="6">Ensamblaje moto</option>
                    <option value="7">Aprobación rodamiento</option>
                    <option value="8">Aprobación calidad</option>
                    <option value="9">Fin Producción</option>
                    
                </select>
                <br>
                Empleado:<input type="number" min=1 name=empleado value="<?php echo $_smarty_tpl->getVariable('idempleado')->value;?>
" readonly> <?php echo $_smarty_tpl->getVariable('empleado')->value;?>

                <br>
                Observaciones:
                <br>

                <textarea name="descripcion" cols="40" rows="10"></textarea>


                </td>
            </tr>
            <tr>
                
            </tr>
        </table>
 <input name="guardar" type="submit" value="Guardar">

        </form>
        <form  method="post" action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
crear_reporte.php?option=cancelar">
        
 <input name="cancelar" type="submit" value="Cancelar">
        </form>
    </td>
    
        
    <td align="center"  valign="top">
        <h2>Historial reportes de la guia:</h2>
        <h5 align="left">Fase_Reporte ---------  Observacion</h5>
        <p align="left">
     
         <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('historial_reportes')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
<?php echo $_smarty_tpl->getVariable('historial_reportes')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('estado_actual');?>
-----------<?php echo $_smarty_tpl->getVariable('historial_reportes')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('descripcion');?>
<br>   
<?php endfor; endif; ?>    
        </p>
    </td>  
    
 </tr> 
 
</table>
